package com.ysy.logistics.service.device.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ysy.logistics.entities.device.Device;
import com.ysy.logistics.entities.device.dto.DeviceDto;
import com.ysy.logistics.mapper.device.DeviceMapper;
import com.ysy.logistics.service.device.DeviceService;
import com.ysy.logistics.util.PageInfo;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * @author 姚斯羽
 * @date 2025/4/16 14:35
 * @description:
 */
@Service
public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> implements DeviceService {
    @Resource
    private DeviceMapper deviceMapper;
    @Override
    public Page<DeviceDto> listByPage(PageInfo<DeviceDto> pageInfo) {
        return deviceMapper.listByPage(pageInfo.getPage(), pageInfo.getCriteria());
    }
}
